/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

@Entity
public class MealEntity extends FnBProductEntity implements Serializable {
    private static long serialVersionUID = 1L;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public static void setSerialVersionUID(long aSerialVersionUID) {
        serialVersionUID = aSerialVersionUID;
    }
    
    private String videoLink;
    @OneToMany(mappedBy="meal")
    private List<ReservedMealEntity> reservedMeal= new ArrayList<ReservedMealEntity>();
    @ManyToMany(mappedBy="meal")
    private List<SetMealEntity> setMeal = new ArrayList<SetMealEntity>();
    @ManyToOne
    private FoodTypeEntity type = new FoodTypeEntity();

    public List<ReservedMealEntity> getReservedMeal() {
        return reservedMeal;
    }

    public void setReservedMeal(ArrayList<ReservedMealEntity> reservedMeal) {
        this.reservedMeal = reservedMeal;
    }

    public String getVideoLink() {
        return videoLink;
    }

    public void setVideoLink(String videoLink) {
        this.videoLink = videoLink;
    }

    public List<SetMealEntity> getSetMeal() {
        return setMeal;
    }

    public void setSetMeal(List<SetMealEntity> setMeal) {
        this.setMeal = setMeal;
    }

    public FoodTypeEntity getType() {
        return type;
    }

    public void setType(FoodTypeEntity type) {
        this.type = type;
    }

}
